﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="RestaurantReviews.aspx.vb" Inherits="LondonItalianRestaurants.RestaurantReviews" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    
   <tr>
    <th class="th"><asp:Button ID="btn_rgraph" runat="server" Text="View Ratings" Width="110px" /></th>
    <th class="th"><asp:Button ID="btn_lgraph" runat="server" Text="View Likes"  Width="110px" /></th>
  </tr>
        
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        
    
        Select the restaurant You wish to review<br />
        <asp:GridView ID="GridView1" runat="server" AllowSorting="True" 
            AutoGenerateColumns="False" datasourceid="SqlDataSource2" CssClass="table" 
            AllowPaging="True" Width="917px">
            <Columns>
                <asp:HyperLinkField DataNavigateUrlFields="ID" 
                    DataNavigateUrlFormatString="ReviewList.aspx?ID={0}" 
                    DataTextField="RestaurantName" HeaderText="Restaurant Name" />
                <asp:HyperLinkField DataNavigateUrlFields="Website" 
                    DataNavigateUrlFormatString="{0}" DataTextField="Website" 
                    HeaderText="Website" />
                <asp:ImageField DataImageUrlField="RestaurantPicture" HeaderText="Thumbnail">
                    <ControlStyle CssClass="RestaurantReviews" BackColor="Black" 
                        BorderColor="#0066FF" BorderStyle="Solid" ForeColor="Black" />
                </asp:ImageField>
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
            ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" 
            SelectCommand="SELECT [ID], [RestaurantName], [Website], [RestaurantPicture] FROM [Restaurants]">
        </asp:SqlDataSource>
    <p>
    <br />
    <p>
    </p>
</asp:Content>
